/*
 *  Cero Project - Copyright   2006 The Cero Developement Team 
 *  (Michael Laguerre, Camille Roux, Matthieu Segret, Mathieu Sivade) 
 * 
 *  This program is free software; you can redistribute it and/or modify it 
 *  under the terms of the GNU General Public License as published by the Free 
 *  Software Foundation; either version 2 of the License, or (at your option) 
 *  any later version.
 * 
 *  This program is distributed in the hope that it will be useful, but 
 *  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 
 *  or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 
 *  for more details.
 */

package org.ceroproject.plugin;

import java.net.URL;
import java.net.URLClassLoader;

/**
 * This class extends URLClassLoader just to have the addURL method on a public
 * range. Maybe it will get upgrades later on, though.
 * 
 * @author Telem
 */
class DynamicURLClassLoader extends URLClassLoader {

	/**
	 * Constructs a new DynamicURLClassLoader using 'urls' as the source for the
	 * class, and 'parent' as its parent ClassLoader.
	 * 
	 * @param urls
	 *            the urls to the files or directory to load
	 * @param parent
	 *            the parent ClassLoader of this ClassLoader
	 */
	public DynamicURLClassLoader(URL[] urls, ClassLoader parent) {
		super(urls, parent);
	}

	/**
	 * Constructs a new DynamicURLClassLoader using 'urls' as the source for the
	 * class, and 'parent' as its parent ClassLoader.
	 * 
	 * @param urls
	 *            the urls to the files or directory to load
	 */
	public DynamicURLClassLoader(URL[] urls) {
		super(urls);
	}

	@Override
	public void addURL(URL url) {
		super.addURL(url);
	}

}